<?php
$viewdefs ['Contacts'] = 
array (
  'DetailView' => 
  array (
    'templateMeta' => 
    array (
      'form' => 
      array (
        'buttons' => 
        array (
          0 => 'EDIT',
          1 => 'DUPLICATE',
          2 => 'DELETE',
          3 => 'FIND_DUPLICATES',
          4 => 
          array (
            'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Contacts\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Contacts\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
          ),
        ),
      ),
      'maxColumns' => '2',
      'widths' => 
      array (
        0 => 
        array (
          'label' => '10',
          'field' => '30',
        ),
        1 => 
        array (
          'label' => '10',
          'field' => '30',
        ),
      ),
      'includes' => 
      array (
        0 => 
        array (
          'file' => 'modules/Leads/Lead.js',
        ),
        1 => 
        array (
          'file' => 'custom/include/js/jquery.js',
        ),
        2 => 
        array (
          'file' => 'custom/modules/Contacts/js/contacts_detail.js',
        ),
      ),
      'useTabs' => false,
      'syncDetailEditViews' => true,
    ),
    'panels' => 
    array (
      'lbl_contact_information' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'cifnumber',
            'label' => 'LBL_CIFNUMBER',
          ),
          1 => 
          array (
            'name' => 'code',
            'label' => 'LBL_CODE',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'name' => 'first_name',
            'comment' => 'First name of the contact',
            'label' => 'LBL_FIRST_NAME',
          ),
          1 => 
          array (
            'name' => 'last_name',
            'comment' => 'Last name of the contact',
            'label' => 'LBL_LAST_NAME',
          ),
        ),
        2 => 
        array (
          0 => 
          array (
            'name' => 'doe_day',
            'label' => 'LBL_BIRTHDATE',
            'customCode' => '{$fields.doe_day.options[$fields.doe_day.value]}{if $fields.doe_day.value neq ""}/{/if}{$fields.doe_month.options[$fields.doe_month.value]}{if $fields.doe_month.value neq ""}/{/if}{$fields.doe_year.value}',
          ),
          1 => 
          array (
            'name' => 'gender',
            'label' => 'LBL_GENDER',
          ),
        ),
        3 => 
        array (
          0 => 
          array (
            'name' => 'taikhoan',
            'label' => 'LBL_TAIKHOAN',
          ),
          1 => 
          array (
            'name' => 'ngaymotaikhoan',
            'label' => 'LBL_NGAYMOTAIKHOAN',
          ),
        ),
        4 => 
        array (
          0 => 
          array (
            'name' => 'title',
            'comment' => 'The title of the contact',
            'label' => 'LBL_TITLE',
          ),
          1 => 
          array (
            'name' => 'phone_mobile',
            'label' => 'LBL_MOBILE_PHONE',
          ),
        ),
        5 => 
        array (
          0 => 
          array (
            'name' => 'nghenghiep',
            'label' => 'LBL_NGHENGHIEP',
          ),
          1 => 
          array (
            'name' => 'congty',
            'label' => 'LBL_CONGTY',
          ),
        ),
        6 => 
        array (
          0 => 
          array (
            'name' => 'diemxephang',
            'label' => 'LBL_DIEMXEPHANG',
          ),
          1 => 
          array (
            'name' => 'loaikhachhang',
            'label' => 'LBL_LOAIKHACHHANG',
          ),
        ),
        7 => 
        array (
          0 => 
          array (
            'name' => 'email1',
            'studio' => 'false',
            'label' => 'LBL_EMAIL_ADDRESS',
          ),
        ),
        8 => 
        array (
          0 => 
          array (
            'name' => 'description',
            'comment' => 'Full text of the note',
            'label' => 'LBL_DESCRIPTION',
          ),
          1 => 
          array (
            'name' => 'primary_address_street',
            'label' => 'LBL_PRIMARY_ADDRESS',
            'type' => 'address',
            'displayParams' => 
            array (
              'key' => 'primary',
            ),
          ),
        ),
        9 => 
        array (
          0 => 
          array (
            'name' => 'danhgiachung',
            'label' => 'LBL_DANHGIA',
          ),
          1 => 
          array (
            'name' => 'ghichu',
            'label' => 'LBL_GHICHU',
          ),
        ),
        10 => 
        array (
          0 => 
          array (
            'name' => 'sothich',
            'label' => 'LBL_SOTHICH',
          ),
          1 => 
          array (
            'name' => 'chuthe',
            'label' => 'LBL_CHUTHE',
          ),
        ),
      ),
      'LBL_PANEL_ADVANCED' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'taikhoanthe',
            'label' => 'LBL_TAIKHOANTHE',
          ),
          1 => '',
        ),
        1 => 
        array (
          0 => 
          array (
            'name' => 'tongsothe',
            'label' => 'LBL_TONGSOTHE',
          ),
          1 => 
          array (
            'name' => 'loaithe',
            'label' => 'LBL_LOAITHE',
          ),
        ),
        2 => 
        array (
          0 => 
          array (
            'name' => 'hinhthucphathanh',
            'label' => 'LBL_HINHTHUCPHATHANH',
          ),
          1 => 
          array (
            'name' => 'nguoibaolanh',
            'label' => 'LBL_NGUOIBAOLANH',
          ),
        ),
        3 => 
        array (
          0 => 
          array (
            'name' => 'phongphathanh',
            'label' => 'LBL_PHONGPHATHANH',
          ),
          1 => 
          array (
            'name' => 'hanmucthe',
            'label' => 'LBL_HANMUCTHE',
          ),
        ),
        4 => 
        array (
          0 => 
          array (
            'name' => 'hinhthucnhansaoke',
            'label' => 'LBL_HINHTHUCNHANSAOKE',
          ),
          1 => 
          array (
            'name' => 'phuongthucthanhtoanduno',
            'label' => 'LBL_PHUONGTHUCTHANHTOAN',
          ),
        ),
      ),
      'LBL_PANEL_ASSIGNMENT' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'assigned_user_name',
            'label' => 'LBL_ASSIGNED_TO_NAME',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'name' => 'date_entered',
            'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
            'label' => 'LBL_DATE_ENTERED',
          ),
          1 => 
          array (
            'name' => 'date_modified',
            'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
            'label' => 'LBL_DATE_MODIFIED',
          ),
        ),
      ),
    ),
  ),
);
?>
